package com.nycreativity.elecreativity.entity.po

import com.baomidou.mybatisplus.annotation.IdType
import com.nycreativity.elecreativity.entity.BaseEntity
import com.baomidou.mybatisplus.annotation.TableId
import io.swagger.annotations.ApiModelProperty
import javax.validation.constraints.NotNull

/**
 * <p>
 *  购物车
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-11
 */
class ShoppingCart(

    /**
     * 用户id
     */
    var userId: Long? = null,

    /**
     * 商品id
     */
    var goodsId: Long? = null,

    /**
     * 商品skuId
     */
    var skuId: Long? = null,

    /**
     * 商品数量
     */
    var count: Int? = null

) : BaseEntity() {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    var id: Long? = null


    override fun toString(): String {
        return "ShoppingCart{" +
                "id=" + id +
                ", userId=" + userId +
                ", goodsId=" + skuId +
                ", count=" + count +
                ", ${super.toString()}}"
    }
}
